I have 1 main program and 12 sub programs that i'd like to be able to change a macro variable #V2 to call the sub. I've done this before with my Haas and Fanuc controllers. The Fadal 88 controller is giving me and invalid error. Here is an example:
I think you need brackets in your expression for P#V2. I am not exactly sure where the bracket need to go, I am still new to macro programming myself. Also in my work so far with macro variables, so far I use #2 to address macro variable number 2, not #V2. you may want to check that, although I am not working on a Fadal so that system may be different.